package com.yh.patterns.decorator.view;

/**
 * @Auther:云尚学Java
 * 装饰者类
 */
public abstract class ViewDecorator extends Component{
    //声明组件类
    private Component component;

    public Component getComponent() {
        return component;
    }

    public void setComponent(Component component) {
        this.component = component;
    }

    public ViewDecorator(Component component,String desc) {
        super(desc);
        this.component = component;
    }
}
